package com.chenxiao.datasource2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * exclude= {DataSourceAutoConfiguration.class} 数据源自动装配
 */
@ServletComponentScan(basePackages = "com.chenxiao.datasource2")
@SpringBootApplication
public class DataSource2Application {

    public static void main(String[] args) {
        SpringApplication.run(DataSource2Application.class, args);
    }

}
